(do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
authorJan Djärv <jan.h.d@swipnet.se>
Wed, 14 Feb 2007 07:28:36 +0000 (07:28 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Wed, 14 Feb 2007 07:28:36 +0000 (07:28 +0000)
src/xterm.c

index cf319b374d905d5358cd6375b22298be2b67b0bb..c4763dfb3ec1a8fb3a1c661750cfefd9721e4e54 100644 (file)
@@ -8426,6 +8426,11 @@ do_ewmh_fullscreen (f)
 {
   int have_net_atom = wm_supports (f, "_NET_WM_STATE");
 
+  /* Some window managers don't say they support _NET_WM_STATE, but they do say
+     they support _NET_WM_STATE_FULLSCREEN.  Try that also.  */
+  if (!have_net_atom)
+      have_net_atom = wm_supports (f, "_NET_WM_STATE_FULLSCREEN");
+
   if (have_net_atom)
     {
       Lisp_Object frame;